<template>
	<view>
		
	</view>
</template>

<script>
  import $H from '@/pages/common/request.js'
	export default {
		data() {
			return {
				id:null,
        info:{},
			}
		},
    onLoad(option) {
      this.id = option.id;

      this.getInfo();

    },
		methods: {


      settlement(){
        $H.post('/app_red_envelope_settlement',{id:this.id}).then((res) => {
          console.log(res,'getRoom');
          if (res.code == 200) {


          }
        })
      },


      getInfo(){
        $H.post('/app_red_envelope_info',{id:this.id}).then((res) => {
          console.log(res,'getRoom');
          if (res.code == 200) {
           if(res.data.status==1){
             this.settlement();
           }

          }
        })
      }
		}
	}
</script>

<style>

</style>
